package vip.xls8z.simple.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import vip.xls8z.simple.config.SimpleProperties;

public class SimpleService {
    private final SimpleProperties simpleProperties;

    public SimpleService(SimpleProperties simpleProperties) {
        this.simpleProperties = simpleProperties;
    }

    public void printProperties() {
        System.out.println("key: " + simpleProperties.getKey() + ", value: " + simpleProperties.getValue());
    }

}
